Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle empty return bodies when processing S3 errors. #32

Merged

Conversation

kellymclaughlin
Copy link
Contributor

Currently error commands that do not return a body cause
s3cmd to output an ugly backtrace. This change checks to
see if the data field of the response is non-empty before
calling getTreeFromXml on it. An example of an offending
command is using s3cmd info on a nonexistent object.

Currently error commands that do not return a body cause
s3cmd to output an ugly backtrace. This change checks to
see if the data field of the response is non-empty before
calling `getTreeFromXml` on it. An example of an offending
command is using `s3cmd info` on a nonexistent object.
mludvig added a commit that referenced this pull request Mar 1, 2012
…ponse-body

Handle empty return bodies when processing S3 errors.
@mludvig mludvig merged commit 0151fa4 into s3tools:master Mar 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants